/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.tewi.ejb.secured;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

/**
 *
 * @author Marcin Kwapisz
 */
@Stateless
public class TransactionalSessionBean implements TransactionalSessionBeanRemote {

    @Override
    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    public String testMandatoryTransaction() {
        return "test mandatory transaction";
    }
    
    

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    @Override
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public String testRequiredTransaction() {
        return "test required transaction";
    }
    
}
